package com.tarena.lbs.content.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tarena.lbs.content.pojo.po.ArticleCategoryPO;
import com.tarena.lbs.content.pojo.query.ArticleCategoryQuery;
import com.tarena.lbs.content.pojo.vo.ArticleCategoryVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;


@Mapper
public interface CategoryMapper extends BaseMapper<ArticleCategoryPO> {
    @Select("select * from article_category")
    List<ArticleCategoryPO> list();

    void updateCategory(ArticleCategoryPO po);

   List<ArticleCategoryVO> selectCategory(ArticleCategoryQuery query);
}
